package com.ruoyi.law.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.law.domain.entity.LawNewsType;
import com.ruoyi.law.mapper.LawNewsTypeMapper;
import com.ruoyi.law.service.ILawNewsTypeService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 新闻类别 服务实现类
 * </p>
 *
 * @author code
 * @since 2022-12-11
 */
@Service
public class LawNewsTypeServiceImpl extends ServiceImpl<LawNewsTypeMapper, LawNewsType> implements ILawNewsTypeService {

    @Override
    public String getNameById(Long typeId) {
        LawNewsType byId = super.getById(typeId);
        return byId == null ? "" : byId.getName();
    }
}
